home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2200 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mn5.swip.net!usenet
  2. From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Localisation
  5. Date: 28 Jan 1996 18:42:57 GMT
  6. Organization: -
  7. Message-ID: <1143.6601T709T2673@mbox3.swipnet.se>
  8. NNTP-Posting-Host: dialup101-102.swipnet.se
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  10.  
  11. I took a look at the locale example at the NDK disk, but I winder if this really is the most effective way to go?
  12.  
  13. They use a function GetString() that compare localeID with each member in the localelist,
  14. when it is needed. Of course it doesn't matter, but maybe in a big program with many strings
  15. on a 68000 without cache. I have never done localisation, but I have a project who need it.
  16.  
  17. Is it possible to use:
  18.  
  19. enum { MSG_HELLO, MSG_BYE, NUMSTRINGS };
  20.  
  21. Then call the list with localestring[MSG_BYE] for example;
  22.  
  23. I would appreciate if someone could send a short example in email or here if this is possible.
  24.  
  25. If the NDK disk is the best way, please explain why!
  26.  
  27. -- 
  28.                               \|/
  29. Thor 2.22                     @ @
  30. +--------------------------oOO-(_)-OOo----------+
  31. | _ //       |                                  |
  32. | \X/        |Falkenberg, Westcoast of Sweden   |
  33. |A3000/10MB  |                                  |
  34. |280HD/28.8  |Please write where YOU live!      |
  35. |GVP Spectrum|                                  |
  36. |AFS Pro     |Amiga-Programmer in C             |
  37. +------------+----------------------------------+
  38.  
  39. --
  40.  
  41.